package com.iot.openfeign;

import com.dc3.common.bean.R;
import org.springframework.web.bind.annotation.*;
import reactivefeign.spring.config.ReactiveFeignClient;
import reactor.core.publisher.Mono;

import java.util.List;

/**
 * @Author 咕唧
 * @Date 2022/7/15 20:49
 * @Version 1.0
 */
@ReactiveFeignClient(value = "iot-auth")
public interface UserClient {
    @GetMapping("/user/info/{id}")
    Mono<R> findById(@PathVariable String id);


    @PostMapping("/user/list")
    Mono<R> findByIdIn(@RequestBody List<String> ids) ;

    @GetMapping("/token/check")
    Mono<R> checkToken(@RequestParam String token);
}
